<?php if(!isset($id)):?>
	<div class="heading-box">
		<h2><?php echo $portfoliopage['title'];?></h2>
		<div class="text-box">
			<?php echo $portfoliopage['content'];?>
		</div>
	</div>
	<div class="breadcrumbs-holder">
		<ul class="breadcrumbs">
			<li><a href="<?php echo $this->baseUrl("/");?>">Home</a></li>
			<li><span>Portfolio</span></li>
		</ul>
		<div class="breadcrumbs-r"></div>
	</div>
	<div class="portfolio">
		<?php foreach($catArr['data'] as $key=>$row):?>
		<div class="portfolio-box">
  			<strong class="title"><a href="<?php echo $this->baseUrl("/portfolio/{$row['id']}/" . App::Helper('Utility')->text2Normalize($row['title'])) ?>"><?php echo $row['title'];?></a></strong>
			<div class="image">
            <a href="<?php echo $this->baseUrl("/portfolio/{$row['id']}/" . App::Helper('Utility')->text2Normalize($row['title'])) ?>">
				<img class="large" src="<?php echo $this->baseUrl("/uploads/filemanager/{$row['image']}"); ?>" alt="image description" width="254" height="141" />
            </a>
			</div>
		</div>
		<?php endforeach;?>
	</div>
	<?php if($rows['paging']!=''):?><?php echo ($rows['link']); ?><?php endif;?>
<?php else:?>
<div class="heading-box">
	<h2><a href="<?php echo $this->baseUrl("/portfolio");?>">Portfolio</a></h2>
	<div class="text-box">
		<?php echo $category['title'];?>
	</div>
</div>
<div id="twocolumns">
	<div id="content">
    <script type="text/javascript">
    jQuery(document).ready(function() {
       jQuery('#s1').cycle({ 
            fx:     'fade', 
            speed:  300, 
            next:   '#next', 
            prev:   '#previous',
            timeout: 0 
        });
    });
    </script>
		<div class="info-box">
			<div class="image">
                <div id="s1">
                    <?php foreach($rows['data'] as $row): ?>
                    <img class="large" src="<?php echo $this->baseUrl("/uploads/filemanager/{$row['imageBig']}"); ?>" alt="<?php echo $row['title'];?>" width="643" height="321" />
                    <?php endforeach;?>
                </div>
                <a href="javascript:void(0)" id="previous" style="z-index:100">Prev</a> <a style="z-index:100" href="javascript:void(0)" id="next">Next</a>
			</div>
			<?php  echo $category['description'];?>
		</div>
	</div>
	<div id="sidebar">
		<?php  echo $this->callElement("default/common/right"); ?>
	</div>
</div>
<?php endif;?>